<div class="row">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'dictionary-_form-form',
    'enableAjaxValidation'=>true,
    'enableClientValidation'=>true,
    'clientOptions'=>array(  
        'validateOnSubmit'=>true,  
     ),
)); ?>

<table class="table table-bordered table-hover definewidth">
    <tbody>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($model,'option_name'); ?>
            </td>
            <td>
                <?php echo $form->textField($model,'option_name',array('class'=>'txt')); ?>
                <?php echo $form->error($model,'option_name'); ?>
            </td>            
	    </tr>
	    
    	<tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($model,'value'); ?>
            </td>
            <td>
                <?php echo $form->textField($model,'value',array('class'=>'txt')); ?>
                <?php echo $form->error($model,'value'); ?>
            </td>            
	    </tr>

        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($model,'sort'); ?>
            </td>
            <td>
                <?php echo $form->textField($model,'sort',array('class'=>'txt')); ?>
                <?php echo $form->error($model,'sort'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft"></td>
            <td>
            <?php echo $form->hiddenField($model,'did',array('value'=>$did)); ?>
            <?php echo CHtml::submitButton('保存',array('class'=>'button button-primary'));?>
            <?php echo CHtml::link('返回列表',$this->createUrl('dictionary/indexoption' ,array('did'=>$did)),array('class'=>'button button-success'));?></td>            
        </tr>
   <tbody>
</table>
<?php $this->endWidget(); ?>
</div>